package com.源码分析;

import org.junit.Test;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import reactor.core.publisher.Mono;

public class FromCallableDemo {

	private Logger logger = LoggerFactory.getLogger(FromCompletionStage.class);

	@Test
	public void test() {
		logger.info(Mono.fromCallable(() -> {
			logger.info("helloFuture");
			return "helloFuture";
		}).block());
	}

}
